<?php
class Ordermanager_Model_Accessleveldecision implements Ordermanager_Model_Mainable{
    
    private $ordemanager_access_level = 5;
    
    public function main(array $variables = null) {
        if(!isset($_SESSION['username']) || !isset($_SESSION['access_level']) && ($_SESSION['access_level'] > $this->ordemanager_access_level)){
            session_destroy();
            header("Location: ".SITE_ROOT."login.html");
        }
    }

}
